INetworkBackend

Undocumented in source.

Members

Functions

attemptReconnection
void attemptReconnection()

Tries to reconnect to the same address on initial connect.

connect
NetConnectStatus connect(NetIPAddress ip, void delegate() onConnect, uint id)
disconnect
void disconnect()
Undocumented in source.
getConnectionSelfID
uint getConnectionSelfID()

Gets ID for that network connection. It can't change over its lifetime

getData
size_t getData(ubyte[] tempBuffer)
Undocumented in source.
isHost
bool isHost()
Undocumented in source.
sendData
bool sendData(ubyte[] data)

Sends the data by using a header

status
NetConnectStatus status()
Undocumented in source.
targetConnectionID
uint targetConnectionID()

Gets ID for the currently target network connection. Changed with the setter

targetConnectionID
void targetConnectionID(uint id)

Sets that network connection connected to the specified ID

Meta